<!--同步erp业务参数-->
<style>
    .import_more:hover .top-userinfo-menu{display: block;}
</style>
<div style="width: 600px;">
    <div class="grid-header">
        <div class="clearfix" >
            <span class="fl f14 lh30 text-indent"> 请配置云客与ERP业务参数对应关系</span>
            <span class="fr">
                <a href="javascript:;" class="btn mr5" ng-click="syncMulti()" >批量同步</a>
                <div class="fr import_more relative">
                    <a href="javascript:;" class="btn btn-yellow mr5">导入默认配置</a>
                    <div class="top-userinfo-menu text-center" style="z-index: 100;top: 23px;left: 2px;">
                        <div class="top-userinfo-menu-list">
                            <a href="javascript:;" ng-click="importErp(1)">256之前版本</a>
                            <a href="javascript:;" ng-click="importErp(2)">256之后版本</a>
                        </div>
                        <i class="top-userinfo-menu-arrow"></i>
                    </div>
                </div>
            </span>
        </div>
    </div>
    <div class="table-wrap mt5" style="min-height: 500px;max-height: 500px;overflow-y: auto;">
        <table width="100%">
            <thead>
            <tr class="thead ta-l">
                <th height="34" width="50">
                    <label class="">
                        序号
                    </label>
                </th>
                <th width="100">云客业务参数 </th>
                <th width="150">ERP业务参数名</th>
                <th width="150">ERP业务参数英文名</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="busi in busis">
                <td height="34">
                    <label class="">
                        {{$index +1}}
                    </label>
                </td>
                <td>{{busi.ParamName}}</td>
                <td>{{busi.ERP_param_name}}</td>
                <td>{{busi.ERP_param}}</td>
                <td>
                    <a class="c-orange" ng-click="sync(busi)">同步</a>
                    <a class="c-orange" ui-dialog="编辑ERP业务参数"
                        ui-dialog-data="busi"
                        ui-dialog-ok="updateBusi($data,$dialog,$index)"
                        ui-dialog-cache="false"
                        ui-dialog-url="inc/dialog/edit_erpparam.html">编辑</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>